package check.x.com.utils;


/**
 * Created by sanmao on 2017/6/12.
 */
public class SsoChecks {

    public static final String USERNAME="admin";
    public static final String PASSWORD="admin";

    public static boolean checkLogin(String username,String password){
        if(username.equals(USERNAME)&&password.equals(PASSWORD)){
            return true;
        }else {
            return false;
        }
    }

    public static boolean checkCookie(String cookieName,String cookieValue){


                if(cookieName.equals("logincookie")&&cookieValue.equals("ssohxw")){
                    return true;
                }


        return false;
    }
}
